//算任意数字的Ｎ次方
#include <iostream>
int main()
{
    int base,exponent,num;
    num = 1 ; //这个用来存总结果的
    std::cout <<  "请输入要乘方的底数:" ;
    std::cin >> base ;
    std::cout << "请输入乘方数:" ;
    std::cin >> exponent ;
    for(int cunt=1;cunt <= exponent ; cunt++){
    	    
    	    num = num * base; 
    }
    std::cout << base << "的" << exponent << "方的结果是:\t"
    << num  << std::endl;
    return 0;
}
